<!doctype html>



  


<html class="theme-next pisces use-motion" lang="zh-Hans">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>



<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />




  
  
  
  

  
    
    
  

  

  

  

  

  
    
    
    <link href="//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
  






<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.1.0" rel="stylesheet" type="text/css" />


  <meta name="keywords" content="Hexo,NexT,主题,个性化" />





  <link rel="alternate" href="/atom.xml" title="听风 | Thinking" type="application/atom+xml" />




  <link rel="shortcut icon" type="image/x-icon" href="/images/favicon.png?v=5.1.0" />






<meta name="description" content="&amp;#x4E00;&amp;#x3001;&amp;#x56FE;&amp;#x7247;&amp;#x6A21;&amp;#x5F0F;1.1 &amp;#x65B0;&amp;#x5EFA;&amp;#x535A;&amp;#x6587;&amp;#x65B0;&amp;#x5EFA;&amp;#x535A;&amp;#x6587;&amp;#xFF0C;&amp;#x8BBE;&amp;#x7F6E;type: &amp;quot;picture&amp;quot;&amp;#xFF0C;&amp;#x4F7F;&amp;#x7528;{\% gp x-x">
<meta property="og:type" content="article">
<meta property="og:title" content="Hexo_NexT主题-个性化配置记录">
<meta property="og:url" content="http://cxjiang.top/2017/04/07/Hexo-NexT/index.html">
<meta property="og:site_name" content="听风 | Thinking">
<meta property="og:description" content="&amp;#x4E00;&amp;#x3001;&amp;#x56FE;&amp;#x7247;&amp;#x6A21;&amp;#x5F0F;1.1 &amp;#x65B0;&amp;#x5EFA;&amp;#x535A;&amp;#x6587;&amp;#x65B0;&amp;#x5EFA;&amp;#x535A;&amp;#x6587;&amp;#xFF0C;&amp;#x8BBE;&amp;#x7F6E;type: &amp;quot;picture&amp;quot;&amp;#xFF0C;&amp;#x4F7F;&amp;#x7528;{\% gp x-x">
<meta property="og:image" content="http://okr3rrs4n.bkt.clouddn.com/%E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A7%202017-04-25%20%E4%B8%8A%E5%8D%889.07.46.png">
<meta property="og:updated_time" content="2017-04-26T11:35:38.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Hexo_NexT主题-个性化配置记录">
<meta name="twitter:description" content="&amp;#x4E00;&amp;#x3001;&amp;#x56FE;&amp;#x7247;&amp;#x6A21;&amp;#x5F0F;1.1 &amp;#x65B0;&amp;#x5EFA;&amp;#x535A;&amp;#x6587;&amp;#x65B0;&amp;#x5EFA;&amp;#x535A;&amp;#x6587;&amp;#xFF0C;&amp;#x8BBE;&amp;#x7F6E;type: &amp;quot;picture&amp;quot;&amp;#xFF0C;&amp;#x4F7F;&amp;#x7528;{\% gp x-x">
<meta name="twitter:image" content="http://okr3rrs4n.bkt.clouddn.com/%E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A7%202017-04-25%20%E4%B8%8A%E5%8D%889.07.46.png">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Pisces',
    sidebar: {"position":"left","display":"always","offset":12,"offset_float":0,"b2t":false,"scrollpercent":false},
    fancybox: true,
    motion: true,
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="http://cxjiang.top/2017/04/07/Hexo-NexT/"/>





  <title> Hexo_NexT主题-个性化配置记录 | 听风 | Thinking </title>
</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  




<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
            (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
  ga('create', 'UA-97192818-1', 'auto');
  ga('send', 'pageview');
</script>


  <script type="text/javascript">
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?f6d6670729f1a15754709bb81163a413";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>










  
  
    
  

  <div class="container sidebar-position-left page-post-detail ">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">听风 | Thinking</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <h1 class="site-subtitle" itemprop="description">The wheel turns,nothing is ever new.</h1>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br />
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br />
            
            关于
          </a>
        </li>
      

      
        <li class="menu-item menu-item-search">
          
            <a href="javascript:;" class="popup-trigger">
          
            
              <i class="menu-item-icon fa fa-search fa-fw"></i> <br />
            
            搜索
          </a>
        </li>
      
    </ul>
  

  
    <div class="site-search">
      
  <div class="popup search-popup local-search-popup">
  <div class="local-search-header clearfix">
    <span class="search-icon">
      <i class="fa fa-search"></i>
    </span>
    <span class="popup-btn-close">
      <i class="fa fa-times-circle"></i>
    </span>
    <div class="local-search-input-wrapper">
      <input autocapitalize="off" autocomplete="off" autocorrect="off"
             placeholder="搜索..." spellcheck="false"
             type="text" id="local-search-input">
    </div>
  </div>
  <div id="local-search-result"></div>
</div>



    </div>
  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">
    <link itemprop="mainEntityOfPage" href="http://cxjiang.top/2017/04/07/Hexo-NexT/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="cxjiang">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/images/avatar.png">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="听风 | Thinking">
    </span>

    
      <header class="post-header">

        
        
          <h2 class="post-title" itemprop="name headline">
            
            
              
                Hexo_NexT主题-个性化配置记录
              
            
          </h2>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2017-04-07T21:21:36+08:00">
                2017-04-07
              </time>
            

            
              <span class="post-meta-divider">|</span>
            

            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-check-o"></i>
              </span>
              
                <span class="post-meta-item-text">更新于</span>
              
              <time title="更新于" itemprop="dateModified" datetime="2017-04-26T19:35:38+08:00">
                2017-04-26
              </time>
            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/瞎折腾/" itemprop="url" rel="index">
                    <span itemprop="name">瞎折腾</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
              <span class="post-comments-count">
                <span class="post-meta-divider">|</span>
                <span class="post-meta-item-icon">
                  <i class="fa fa-comment-o"></i>
                </span>
                <a class="cloud-tie-join-count" href="/2017/04/07/Hexo-NexT/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count join-count" itemprop="commentCount"></span>
                </a>
              </span>
            
          

          
          
             <span id="/2017/04/07/Hexo-NexT/" class="leancloud_visitors" data-flag-title="Hexo_NexT主题-个性化配置记录">
               <span class="post-meta-divider">|</span>
               <span class="post-meta-item-icon">
                 <i class="fa fa-eye"></i>
               </span>
               
                 <span class="post-meta-item-text">阅读次数 </span>
               
                 <span class="leancloud-visitors-count"></span>
             </span>
          

          

          

          

        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        <script src="/assets/js/APlayer.min.js"> </script><h2 id="&#x4E00;&#x3001;&#x56FE;&#x7247;&#x6A21;&#x5F0F;"><a href="#&#x4E00;&#x3001;&#x56FE;&#x7247;&#x6A21;&#x5F0F;" class="headerlink" title="&#x4E00;&#x3001;&#x56FE;&#x7247;&#x6A21;&#x5F0F;"></a>&#x4E00;&#x3001;&#x56FE;&#x7247;&#x6A21;&#x5F0F;</h2><h3 id="1-1-&#x65B0;&#x5EFA;&#x535A;&#x6587;"><a href="#1-1-&#x65B0;&#x5EFA;&#x535A;&#x6587;" class="headerlink" title="1.1 &#x65B0;&#x5EFA;&#x535A;&#x6587;"></a>1.1 &#x65B0;&#x5EFA;&#x535A;&#x6587;</h3><p>&#x65B0;&#x5EFA;&#x535A;&#x6587;&#xFF0C;&#x8BBE;&#x7F6E;<code>type: &quot;picture&quot;</code>&#xFF0C;&#x4F7F;&#x7528;<code>{\% gp x-x \%} ... {\% endgp \%}</code>&#x6807;&#x7B7E;&#x5F15;&#x7528;&#x8981;&#x5C55;&#x793A;&#x7684;&#x56FE;&#x7247;&#x5730;&#x5740;&#xFF0C;&#x5982;&#x4E0B;&#x6240;&#x793A;&#xFF1A;</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div></pre></td><td class="code"><pre><div class="line"><span class="meta">---</span></div><div class="line"><span class="attr">title:</span> Naruto-Pictures</div><div class="line"><span class="attr">categories:</span> [&#x56FE;&#x7247;]</div><div class="line"><span class="attr">tags:</span> [picture,naruto]</div><div class="line"><span class="attr">date:</span> <span class="number">2016</span><span class="bullet">-09</span><span class="bullet">-02</span> <span class="number">14</span>:<span class="number">36</span>:<span class="number">04</span></div><div class="line"><span class="attr">keywords:</span> picture,naruto</div><div class="line"><span class="attr">type:</span> <span class="string">&quot;picture&quot;</span></div><div class="line"><span class="attr">top:</span> <span class="number">999</span></div><div class="line"><span class="meta">---</span></div><div class="line">{% gp <span class="number">5</span><span class="bullet">-3</span> %}</div><div class="line">![](http://oapjp6spr.bkt.clouddn.com/<span class="number">18210.</span>jpg)</div><div class="line">![](http://oapjp6spr.bkt.clouddn.com/<span class="number">196232.</span>jpg)</div><div class="line">![](http://oapjp6spr.bkt.clouddn.com/<span class="number">224147.</span>jpg)</div><div class="line">![](http://oapjp6spr.bkt.clouddn.com/<span class="number">199301.</span>jpg)</div><div class="line">![](http://oapjp6spr.bkt.clouddn.com/<span class="number">213318.</span>jpg)</div><div class="line">{% endgp %}</div></pre></td></tr></table></figure>
<a id="more"></a>
<h3 id="1-2-&#x56FE;&#x7247;&#x5C55;&#x793A;&#x6548;&#x679C;"><a href="#1-2-&#x56FE;&#x7247;&#x5C55;&#x793A;&#x6548;&#x679C;" class="headerlink" title="1.2 &#x56FE;&#x7247;&#x5C55;&#x793A;&#x6548;&#x679C;"></a>1.2 &#x56FE;&#x7247;&#x5C55;&#x793A;&#x6548;&#x679C;</h3><p><code>{\% gp 5-3 \%}</code>&#xFF1A;&#x8BBE;&#x7F6E;&#x56FE;&#x7247;&#x5C55;&#x793A;&#x6548;&#x679C;&#xFF0C;&#x53C2;&#x8003;<code>theme/next/scripts/tags/group-pictures.js</code> &#x6CE8;&#x91CA;&#x793A;&#x610F;&#x56FE;&#x3002;</p>
<h3 id="1-3-&#x4FEE;&#x590D;&#x56FE;&#x7247;&#x5C55;&#x793A;"><a href="#1-3-&#x4FEE;&#x590D;&#x56FE;&#x7247;&#x5C55;&#x793A;" class="headerlink" title="1.3 &#x4FEE;&#x590D;&#x56FE;&#x7247;&#x5C55;&#x793A;"></a>1.3 &#x4FEE;&#x590D;&#x56FE;&#x7247;&#x5C55;&#x793A;</h3><p>&#x4E3B;&#x9898;&#x76EE;&#x524D;&#x9996;&#x9875;&#x53EF;&#x4EE5;&#x6B63;&#x5E38;&#x663E;&#x793A;&#x6B65;&#x9AA4;<code>1.2 &#x8BBE;&#x7F6E;&#x7684;&#x56FE;&#x7247;&#x6548;&#x679C;</code>&#xFF0C;&#x4F46;&#x662F;<code>&#x70B9;&#x51FB;&#x8FDB;&#x5165;&#x540E;</code>&#x663E;&#x793A;&#x6548;&#x679C; <em>&#x4E22;&#x5931;</em>&#xFF0C;&#x6240;&#x4EE5;&#x9700;&#x8981;&#x4FEE;&#x6539;&#x4E00;&#x4E0B;&#x6587;&#x4EF6; <code>themes\next\source\css\_common\components\tags\group-pictures.styl</code> &#x4E2D;&#x7684;&#x4EE5;&#x4E0B;&#x6837;&#x5F0F;&#xFF1A;</p>
<figure class="highlight stylus"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div></pre></td><td class="code"><pre><div class="line"><span class="selector-class">.page-post-detail</span> <span class="selector-class">.post-body</span> <span class="selector-class">.group-picture-column</span> {</div><div class="line">  <span class="comment">// float: none;</span></div><div class="line">  <span class="attribute">margin-top</span>: <span class="number">10px</span>;</div><div class="line">  <span class="comment">// width: auto !important;</span></div><div class="line">  <span class="selector-tag">img</span> { <span class="attribute">margin</span>: <span class="number">0</span> auto; }</div><div class="line">}</div></pre></td></tr></table></figure>
<h2 id="&#x4E8C;&#x3001;&#x535A;&#x6587;&#x7F6E;&#x9876;"><a href="#&#x4E8C;&#x3001;&#x535A;&#x6587;&#x7F6E;&#x9876;" class="headerlink" title="&#x4E8C;&#x3001;&#x535A;&#x6587;&#x7F6E;&#x9876;"></a>&#x4E8C;&#x3001;&#x535A;&#x6587;&#x7F6E;&#x9876;</h2><h3 id="2-1-&#x4FEE;&#x6539;hexo-generator-index&#x63D2;&#x4EF6;"><a href="#2-1-&#x4FEE;&#x6539;hexo-generator-index&#x63D2;&#x4EF6;" class="headerlink" title="2.1 &#x4FEE;&#x6539;hexo-generator-index&#x63D2;&#x4EF6;"></a>2.1 &#x4FEE;&#x6539;<code>hexo-generator-index</code>&#x63D2;&#x4EF6;</h3><p>&#x66FF;&#x6362;&#x6587;&#x4EF6;&#xFF1A;<code>node_modules/hexo-generator-index/lib/generator.js</code> &#x4E3A;&#xFF1A;<a href="https://github.com/ehlxr/useful-code/blob/master/resources/generator.js" target="_blank" rel="external">generator.js</a></p>
<h3 id="2-2-&#x8BBE;&#x7F6E;&#x6587;&#x7AE0;&#x7F6E;&#x9876;"><a href="#2-2-&#x8BBE;&#x7F6E;&#x6587;&#x7AE0;&#x7F6E;&#x9876;" class="headerlink" title="2.2 &#x8BBE;&#x7F6E;&#x6587;&#x7AE0;&#x7F6E;&#x9876;"></a>2.2 &#x8BBE;&#x7F6E;&#x6587;&#x7AE0;&#x7F6E;&#x9876;</h3><p>&#x5728;&#x6587;&#x7AE0; <code>Front-matter</code> &#x4E2D;&#x6DFB;&#x52A0; <code>top</code> &#x503C;&#xFF0C;&#x6570;&#x503C;&#x8D8A;&#x5927;&#x6587;&#x7AE0;&#x8D8A;&#x9760;&#x524D;&#xFF0C;&#x5982;&#xFF1A;</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div></pre></td><td class="code"><pre><div class="line"><span class="meta">---</span></div><div class="line"><span class="attr">title:</span> Naruto &#x56FE;&#x96C6;</div><div class="line"><span class="attr">categories:</span> [&#x56FE;&#x7247;]</div><div class="line"><span class="attr">tags:</span> [picture,naruto]</div><div class="line"><span class="attr">date:</span> <span class="number">2016</span><span class="bullet">-09</span><span class="bullet">-02</span> <span class="number">14</span>:<span class="number">36</span>:<span class="number">04</span></div><div class="line"><span class="attr">keywords:</span> picture,naruto</div><div class="line"><span class="attr">type:</span> <span class="string">&quot;picture&quot;</span></div><div class="line"><span class="attr">top:</span> <span class="number">10</span></div><div class="line"><span class="meta">---</span></div></pre></td></tr></table></figure>
<h2 id="&#x4E09;&#x3001;&#x8BBE;&#x7F6E;&#x9759;&#x6001;&#x80CC;&#x666F;&#x56FE;&#x50CF;"><a href="#&#x4E09;&#x3001;&#x8BBE;&#x7F6E;&#x9759;&#x6001;&#x80CC;&#x666F;&#x56FE;&#x50CF;" class="headerlink" title="&#x4E09;&#x3001;&#x8BBE;&#x7F6E;&#x9759;&#x6001;&#x80CC;&#x666F;&#x56FE;&#x50CF;"></a>&#x4E09;&#x3001;&#x8BBE;&#x7F6E;&#x9759;&#x6001;&#x80CC;&#x666F;&#x56FE;&#x50CF;</h2><p>&#x8BBE;&#x7F6E;&#x80CC;&#x666F;&#x56FE;&#x7247;&#xFF0C;&#x4E14;&#x4E0D;&#x968F;&#x9875;&#x9762;&#x6EDA;&#x52A8;&#x3002;</p>
<p>&#x5C06;&#x80CC;&#x666F;&#x56FE;&#x6587;&#x4EF6;<code>background.jpg</code>&#x7F6E;&#x4E8E;<code>/themes/next/source/images/</code>&#x6587;&#x4EF6;&#x5939;&#x5185;</p>
<p>&#x4FEE;&#x6539;<code>/themes/next/source/css/_custom/custom.styl</code>&#xFF0C;&#x8BBE;&#x7F6E;&#x5982;&#x4E0B;&#xFF1A;</p>
<figure class="highlight less"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div></pre></td><td class="code"><pre><div class="line"><span class="comment">// Custom styles.</span></div><div class="line"><span class="selector-tag">body</span> {</div><div class="line">  <span class="attribute">background</span>: url(<span class="string">/images/background.jpg</span>);</div><div class="line">  <span class="attribute">background-attachment</span>: fixed;</div><div class="line">}</div></pre></td></tr></table></figure>
<h2 id="&#x56DB;&#x3001;&#x4FEE;&#x6539;&#x4E3B;&#x9898;&#x989C;&#x8272;"><a href="#&#x56DB;&#x3001;&#x4FEE;&#x6539;&#x4E3B;&#x9898;&#x989C;&#x8272;" class="headerlink" title="&#x56DB;&#x3001;&#x4FEE;&#x6539;&#x4E3B;&#x9898;&#x989C;&#x8272;"></a>&#x56DB;&#x3001;&#x4FEE;&#x6539;&#x4E3B;&#x9898;&#x989C;&#x8272;</h2><p>&#x6253;&#x5F00;<code>hexo/themes/next/source/css/_variables/base.styl</code>&#x627E;&#x5230;Colors&#x4EE3;&#x7801;&#x6BB5;&#xFF0C;&#x5982;&#x4E0B;&#xFF1A;</p>
<figure class="highlight lasso"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div></pre></td><td class="code"><pre><div class="line"><span class="comment">// Colors</span></div><div class="line"><span class="comment">// colors for use across theme.</span></div><div class="line"><span class="comment">// --------------------------------------------------</span></div><div class="line">  $whitesmoke   = #f5f5f5</div><div class="line">  $gainsboro    = #eee  <span class="comment">//&#x8FD9;&#x4E2A;&#x662F;&#x8FB9;&#x680F;&#x5934;&#x50CF;&#x5916;&#x6846;&#x7684;&#x989C;&#x8272;&#xFF0C;</span></div><div class="line">  $gray<span class="params">-lighter</span> = #ddd  <span class="comment">//&#x6587;&#x7AE0;&#x4E2D;&#x63D2;&#x5165;&#x56FE;&#x7247;&#x8FB9;&#x6846;&#x989C;&#x8272;</span></div><div class="line">  $grey<span class="params">-light</span>   = #ccc  <span class="comment">//&#x6587;&#x7AE0;&#x4E4B;&#x95F4;&#x5206;&#x5272;&#x7EBF;&#x3001;&#x4E0B;&#x5212;&#x7EBF;&#x989C;&#x8272;</span></div><div class="line">  $grey         = #bbb  <span class="comment">//&#x9875;&#x9762;&#x9009;&#x4E2D;&#x5706;&#x70B9;&#x989C;&#x8272;</span></div><div class="line">  $grey<span class="params">-dark</span>    = #999</div><div class="line">  $grey<span class="params">-dim</span>     = #666 <span class="comment">//&#x4FA7;&#x8FB9;&#x680F;&#x76EE;&#x5F55;&#x5B57;&#x4F53;&#x989C;&#x8272;</span></div><div class="line">  $black<span class="params">-light</span>  = #555 <span class="comment">//&#x4FEE;&#x6539;&#x6587;&#x7AE0;&#x5B57;&#x4F53;&#x989C;&#x8272;</span></div><div class="line">  $black<span class="params">-dim</span>    = #333</div><div class="line">  $black<span class="params">-deep</span>   = #495a80  <span class="comment">//&#x4FEE;&#x6539;&#x4E3B;&#x9898;&#x7684;&#x989C;&#x8272;&#xFF0C;&#x8FD9;&#x91CC;&#x6211;&#x5DF2;&#x7ECF;&#x6539;&#x6210;&#x8001;&#x84DD;&#x8272;&#x4E86;&#x3002;</span></div><div class="line">  $red          = #ff2a2a</div><div class="line">  $blue<span class="params">-bright</span>  = #87daff</div><div class="line">  $blue         = #0684bd</div><div class="line">  $blue<span class="params">-deep</span>    = #262a30</div><div class="line">  $orange       = #F39D01 <span class="comment">//&#x6D4F;&#x89C8;&#x6587;&#x7AE0;&#x65F6;&#xFF0C;&#x76EE;&#x5F55;&#x9009;&#x4E2D;&#x7684;&#x989C;&#x8272;</span></div></pre></td></tr></table></figure>
<p>  &#x5176;&#x4ED6;&#x7684;&#x53EF;&#x4EE5;&#x81EA;&#x884C;&#x66F4;&#x6539;&#xFF0C;&#x770B;&#x770B;&#x6548;&#x679C;</p>
<h2 id="&#x4E94;&#x3001;&#x5B89;&#x88C5;busuanzi-js&#x811A;&#x672C;"><a href="#&#x4E94;&#x3001;&#x5B89;&#x88C5;busuanzi-js&#x811A;&#x672C;" class="headerlink" title="&#x4E94;&#x3001;&#x5B89;&#x88C5;busuanzi.js&#x811A;&#x672C;"></a>&#x4E94;&#x3001;&#x5B89;&#x88C5;<code>busuanzi.js</code>&#x811A;&#x672C;</h2><p>&#x5982;&#x679C;&#x4F60;&#x4F7F;&#x7528;&#x7684;&#x662F;NexT&#x4E3B;&#x9898;&#xFF08;&#x5176;&#x4ED6;&#x4E3B;&#x9898;&#x7C7B;&#x4F3C;&#xFF09;&#xFF0C;&#x6253;&#x5F00;<code>/theme/next/layout/_partial/footer.swig</code>&#x6587;&#x4EF6;&#xFF0C;&#x62F7;&#x8D1D;&#x4E0B;&#x9762;&#x7684;&#x4EE3;&#x7801;&#x81F3;&#x6587;&#x4EF6;&#x7684;&#x5F00;&#x5934;&#x3002;</p>
<figure class="highlight xml"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div></pre></td><td class="code"><pre><div class="line"><span class="tag">&lt;<span class="name">script</span> <span class="attr">async</span> <span class="attr">src</span>=<span class="string">&quot;https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js&quot;</span>&gt;</span><span class="undefined"></span></div><div class="line"><span class="tag">&lt;/<span class="name">script</span>&gt;</span></div></pre></td></tr></table></figure>
<h3 id="&#x663E;&#x793A;&#x7EDF;&#x8BA1;&#x6807;&#x7B7E;"><a href="#&#x663E;&#x793A;&#x7EDF;&#x8BA1;&#x6807;&#x7B7E;" class="headerlink" title="&#x663E;&#x793A;&#x7EDF;&#x8BA1;&#x6807;&#x7B7E;"></a>&#x663E;&#x793A;&#x7EDF;&#x8BA1;&#x6807;&#x7B7E;</h3><p>&#x540C;&#x6837;&#x7F16;&#x8F91;<code>/theme/next/layout/_ partial/footer.swig</code>&#x6587;&#x4EF6;&#x3002;</p>
<p>&#x5982;&#x679C;&#x4F60;&#x60F3;&#x8981;&#x663E;&#x793A;<code>pv</code>&#x7EDF;&#x8BA1;&#x91CF;&#xFF0C;&#x590D;&#x5236;&#x4EE5;&#x4E0B;&#x4EE3;&#x7801;&#x81F3;&#x4F60;&#x60F3;&#x8981;&#x653E;&#x7F6E;&#x7684;&#x4F4D;&#x7F6E;&#xFF0C;<br><figure class="highlight xml"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div></pre></td><td class="code"><pre><div class="line"><span class="tag">&lt;<span class="name">span</span> <span class="attr">id</span>=<span class="string">&quot;busuanzi_container_site_pv&quot;</span>&gt;</span></div><div class="line">    &#x672C;&#x7AD9;&#x603B;&#x8BBF;&#x95EE;&#x91CF;<span class="tag">&lt;<span class="name">span</span> <span class="attr">id</span>=<span class="string">&quot;busuanzi_value_site_pv&quot;</span>&gt;</span><span class="tag">&lt;/<span class="name">span</span>&gt;</span>&#x6B21;</div><div class="line"><span class="tag">&lt;/<span class="name">span</span>&gt;</span></div></pre></td></tr></table></figure></p>
<p>&#x5982;&#x679C;&#x4F60;&#x60F3;&#x8981;&#x663E;&#x793A;<code>uv</code>&#x7EDF;&#x8BA1;&#x91CF;&#xFF0C;&#x590D;&#x5236;&#x4EE5;&#x4E0B;&#x4EE3;&#x7801;&#x81F3;&#x4F60;&#x60F3;&#x8981;&#x653E;&#x7F6E;&#x7684;&#x4F4D;&#x7F6E;&#xFF0C;<br><figure class="highlight xml"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div></pre></td><td class="code"><pre><div class="line"><span class="tag">&lt;<span class="name">span</span> <span class="attr">id</span>=<span class="string">&quot;busuanzi_container_site_uv&quot;</span>&gt;</span></div><div class="line">  &#x672C;&#x7AD9;&#x8BBF;&#x5BA2;&#x6570;<span class="tag">&lt;<span class="name">span</span> <span class="attr">id</span>=<span class="string">&quot;busuanzi_value_site_uv&quot;</span>&gt;</span><span class="tag">&lt;/<span class="name">span</span>&gt;</span>&#x4EBA;&#x6B21;</div><div class="line"><span class="tag">&lt;/<span class="name">span</span>&gt;</span></div></pre></td></tr></table></figure></p>
<h2 id="&#x516D;&#x3001;&#x4FEE;&#x6539;&#x5185;&#x5BB9;&#x5BBD;&#x5EA6;"><a href="#&#x516D;&#x3001;&#x4FEE;&#x6539;&#x5185;&#x5BB9;&#x5BBD;&#x5EA6;" class="headerlink" title="&#x516D;&#x3001;&#x4FEE;&#x6539;&#x5185;&#x5BB9;&#x5BBD;&#x5EA6;"></a>&#x516D;&#x3001;&#x4FEE;&#x6539;&#x5185;&#x5BB9;&#x5BBD;&#x5EA6;</h2><p>&#x73B0;&#x5728;&#x4E00;&#x822C;&#x7684;&#x7B14;&#x8BB0;&#x672C;&#x90FD;&#x5728;15&#x5BF8;&#x4EE5;&#x4E0A;&#xFF0C;&#x535A;&#x5BA2;&#x9875;&#x9762;&#x4E24;&#x4FA7;&#x7559;&#x767D;&#x592A;&#x591A;&#x5C31;&#x663E;&#x5F97;&#x6CA1;&#x6709;&#x5FC5;&#x8981;&#xFF0C;&#x5E76;&#x4E14;&#x4E0D;&#x7F8E;&#x89C2;&#xFF0C;&#x6240;&#x4EE5;&#x6709;&#x5FC5;&#x8981;&#x8C03;&#x6574;&#x4E00;&#x4E0B;&#x5BBD;&#x5EA6;&#x3002;&#xFF08;&#x53EF;&#x4EE5;&#x6162;&#x6162;&#x8BD5;&#x7740;&#x8C03;&#x6574;&#x5230;&#x6700;&#x5408;&#x9002;&#x7684;&#x72B6;&#x6001;&#xFF09;</p>
<ul>
<li><p>&#x627E;&#x5230;<code>/themes/next/source/css/_common/components/post/post-expand.styl</code>&#xFF0C;&#x627E;&#x5230;&#xFF1A;</p>
<figure class="highlight less"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div></pre></td><td class="code"><pre><div class="line"><span class="keyword">@media</span> (<span class="attribute">max-width</span>: <span class="number">767px</span>)</div><div class="line">&#x6539;&#x4E3A;&#xFF1A;</div><div class="line"><span class="variable">@media</span> (<span class="attribute">max-width</span>: <span class="number">1060px</span>)</div></pre></td></tr></table></figure>
</li>
<li><p>&#x627E;&#x5230;&#xFF1A;<code>/themes/next/source/css/_variables/base.styl</code> &#xFF0C;&#x627E;&#x5230;&#xFF1A;</p>
<figure class="highlight gams"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div></pre></td><td class="code"><pre><div class="line"><span class="meta"><span class="meta-keyword">$main</span>-desktop                   = 960px</span></div><div class="line"><span class="meta"><span class="meta-keyword">$main</span>-desktop-large             = 1200px</span></div><div class="line"><span class="meta"><span class="meta-keyword">$content</span>-desktop                = 700px</span></div><div class="line">&#x6539;&#x4E3A;&#xFF1A;</div><div class="line"><span class="meta"><span class="meta-keyword">$main</span>-desktop                   = 1060px</span></div><div class="line"><span class="meta"><span class="meta-keyword">$main</span>-desktop-large             = 1200px</span></div><div class="line"><span class="meta"><span class="meta-keyword">$content</span>-desktop                = 800px</span></div></pre></td></tr></table></figure>
</li>
</ul>
<h2 id="&#x4E03;&#x3001;pisces&#x6587;&#x7AE0;&#x7684;&#x8DDD;&#x79BB;&#x4EE5;&#x53CA;&#x6587;&#x7AE0;&#x5206;&#x5272;&#x7EBF;&#x957F;&#x5EA6;&#x4FEE;&#x6539;"><a href="#&#x4E03;&#x3001;pisces&#x6587;&#x7AE0;&#x7684;&#x8DDD;&#x79BB;&#x4EE5;&#x53CA;&#x6587;&#x7AE0;&#x5206;&#x5272;&#x7EBF;&#x957F;&#x5EA6;&#x4FEE;&#x6539;" class="headerlink" title="&#x4E03;&#x3001;pisces&#x6587;&#x7AE0;&#x7684;&#x8DDD;&#x79BB;&#x4EE5;&#x53CA;&#x6587;&#x7AE0;&#x5206;&#x5272;&#x7EBF;&#x957F;&#x5EA6;&#x4FEE;&#x6539;"></a>&#x4E03;&#x3001;pisces&#x6587;&#x7AE0;&#x7684;&#x8DDD;&#x79BB;&#x4EE5;&#x53CA;&#x6587;&#x7AE0;&#x5206;&#x5272;&#x7EBF;&#x957F;&#x5EA6;&#x4FEE;&#x6539;</h2><p>&#x66F4;&#x6539; &#x4E3B;&#x9898;&#x8DEF;&#x5F84;&#x4E0B;<code>/source/css/_common/components/post/posts-expand.styl</code> &#x4E2D;</p>
<figure class="highlight scss"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div></pre></td><td class="code"><pre><div class="line"><span class="selector-class">.posts-expand</span> {</div><div class="line">  <span class="selector-class">.post-eof</span> {</div><div class="line">    <span class="attribute">display</span>: block;</div><div class="line">    <span class="attribute">margin</span>: <span class="number">60px</span> auto <span class="number">50px</span>; <span class="comment">//&#x6587;&#x7AE0;&#x95F4;&#x8DDD;</span></div><div class="line">    <span class="attribute">width</span>: <span class="number">8%</span>;  <span class="comment">//&#x5206;&#x5272;&#x7EBF;&#x957F;&#x5EA6;</span></div><div class="line">    <span class="attribute">height</span>: <span class="number">1px</span>;</div><div class="line">    <span class="attribute">background</span>: <span class="variable">$grey-light</span>;</div><div class="line">    <span class="attribute">text-align</span>: center;</div><div class="line">  }</div><div class="line">}</div></pre></td></tr></table></figure>
<h2 id="&#x516B;&#x3001;&#x4FEE;&#x6539;&#x9996;&#x9875;&#x3001;&#x5F52;&#x6863;&#x3001;&#x6807;&#x7B7E;&#x9875;&#x6587;&#x7AE0;&#x6570;"><a href="#&#x516B;&#x3001;&#x4FEE;&#x6539;&#x9996;&#x9875;&#x3001;&#x5F52;&#x6863;&#x3001;&#x6807;&#x7B7E;&#x9875;&#x6587;&#x7AE0;&#x6570;" class="headerlink" title="&#x516B;&#x3001;&#x4FEE;&#x6539;&#x9996;&#x9875;&#x3001;&#x5F52;&#x6863;&#x3001;&#x6807;&#x7B7E;&#x9875;&#x6587;&#x7AE0;&#x6570;"></a>&#x516B;&#x3001;&#x4FEE;&#x6539;&#x9996;&#x9875;&#x3001;&#x5F52;&#x6863;&#x3001;&#x6807;&#x7B7E;&#x9875;&#x6587;&#x7AE0;&#x6570;</h2><h3 id="&#x5B89;&#x88C5;&#x76F8;&#x5173;&#x63D2;&#x4EF6;"><a href="#&#x5B89;&#x88C5;&#x76F8;&#x5173;&#x63D2;&#x4EF6;" class="headerlink" title="&#x5B89;&#x88C5;&#x76F8;&#x5173;&#x63D2;&#x4EF6;"></a>&#x5B89;&#x88C5;&#x76F8;&#x5173;&#x63D2;&#x4EF6;</h3><p>&#x8F93;&#x5165;&#x5982;&#x4E0B;&#x547D;&#x4EE4;<br><figure class="highlight sql"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div></pre></td><td class="code"><pre><div class="line">npm <span class="keyword">install</span> <span class="comment">--save hexo-generator-index</span></div><div class="line">npm <span class="keyword">install</span> <span class="comment">--save hexo-generator-archive</span></div><div class="line">npm <span class="keyword">install</span> <span class="comment">--save hexo-generator-tag</span></div></pre></td></tr></table></figure></p>
<h3 id="&#x914D;&#x7F6E;&#x6587;&#x4EF6;"><a href="#&#x914D;&#x7F6E;&#x6587;&#x4EF6;" class="headerlink" title="&#x914D;&#x7F6E;&#x6587;&#x4EF6;"></a>&#x914D;&#x7F6E;&#x6587;&#x4EF6;</h3><p>&#x5B89;&#x88C5;&#x5B8C;&#x63D2;&#x4EF6;&#x540E;&#xFF0C;&#x5728;&#x7AD9;&#x70B9;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E2D;&#xFF0C;&#x6DFB;&#x52A0;&#x5982;&#x4E0B;&#x5185;&#x5BB9;<br><figure class="highlight yaml"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div></pre></td><td class="code"><pre><div class="line"><span class="attr">index_generator:</span></div><div class="line"><span class="attr">  per_page:</span> <span class="number">5</span></div><div class="line"></div><div class="line"><span class="attr">archive_generator:</span></div><div class="line"><span class="attr">  per_page:</span> <span class="number">20</span></div><div class="line"><span class="attr">  yearly:</span> <span class="literal">true</span></div><div class="line"><span class="attr">  monthly:</span> <span class="literal">true</span></div><div class="line"></div><div class="line"><span class="attr">tag_generator:</span></div><div class="line"><span class="attr">  per_page:</span> <span class="number">10</span></div></pre></td></tr></table></figure></p>
<p>&#x5176;&#x4E2D;<code>per_page</code>&#x5B57;&#x6BB5;&#x662F;&#x4F60;&#x5E0C;&#x671B;&#x8BBE;&#x5B9A;&#x7684;&#x663E;&#x793A;&#x7BC7;&#x6570;&#x3002;<code>index</code>, <code>archive</code>&#x53CA;<code>tag</code>&#x5F00;&#x5934;&#x5206;&#x8868;&#x4EE3;&#x8868;&#x4E3B;&#x9875;&#xFF0C;&#x5F52;&#x6863;&#x9875;&#x9762;&#x548C;&#x6807;&#x7B7E;&#x9875;&#x9762;&#x3002;</p>
<h2 id="&#x4E5D;&#x3001;&#x4FEE;&#x6539;&#x6B63;&#x6587;&#x9876;&#x90E8;&#x4E0E;&#x6807;&#x9898;&#x884C;&#x95F4;&#x8DDD;"><a href="#&#x4E5D;&#x3001;&#x4FEE;&#x6539;&#x6B63;&#x6587;&#x9876;&#x90E8;&#x4E0E;&#x6807;&#x9898;&#x884C;&#x95F4;&#x8DDD;" class="headerlink" title="&#x4E5D;&#x3001;&#x4FEE;&#x6539;&#x6B63;&#x6587;&#x9876;&#x90E8;&#x4E0E;&#x6807;&#x9898;&#x884C;&#x95F4;&#x8DDD;"></a>&#x4E5D;&#x3001;&#x4FEE;&#x6539;&#x6B63;&#x6587;&#x9876;&#x90E8;&#x4E0E;&#x6807;&#x9898;&#x884C;&#x95F4;&#x8DDD;</h2><p>&#x5728;&#x535A;&#x5BA2;&#x9996;&#x9875;&#xFF0C;&#x6587;&#x7AE0;&#x9884;&#x89C8;&#x6B63;&#x6587;&#x7684;&#x9876;&#x90E8;&#x4E0E;&#x6807;&#x9898;&#x884C;&#x7684;&#x9ED8;&#x8BA4;&#x95F4;&#x8DDD;&#x8FC7;&#x5927;&#xFF0C;&#x4E0D;&#x662F;&#x5F88;&#x7F8E;&#x89C2;&#xFF0C;&#x5982;&#x4E0B;&#xFF1A;<br><img src="http://okr3rrs4n.bkt.clouddn.com/%E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A7%202017-04-25%20%E4%B8%8A%E5%8D%889.07.46.png" alt=""></p>
<p>&#x4FEE;&#x6539;<code>next/source/css/_custom/custom.styl</code>&#x5373;&#x53EF;&#xFF0C;&#x6DFB;&#x52A0;&#x5982;&#x4E0B;&#xFF1A;<br><figure class="highlight css"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div></pre></td><td class="code"><pre><div class="line"><span class="selector-class">.posts-expand</span> <span class="selector-class">.post-meta</span> {</div><div class="line">	<span class="attribute">margin</span>: <span class="number">10px</span> <span class="number">0</span> <span class="number">10px</span> <span class="number">0</span>;</div><div class="line">}</div></pre></td></tr></table></figure></p>
<p><code>hexo d --g</code>&#x540E;&#x5373;&#x53EF;&#x770B;&#x5230;&#x4FEE;&#x6539;&#x7684;&#x6837;&#x5F0F;</p>
<h2 id="&#x53C2;&#x8003;&#x8D44;&#x6599;"><a href="#&#x53C2;&#x8003;&#x8D44;&#x6599;" class="headerlink" title="&#x53C2;&#x8003;&#x8D44;&#x6599;"></a>&#x53C2;&#x8003;&#x8D44;&#x6599;</h2><p><a href="http://ehlxr.me/2016/08/30/%E4%BD%BF%E7%94%A8Hexo%E5%9F%BA%E4%BA%8EGitHub-Pages%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2%EF%BC%88%E4%B8%89%EF%BC%89/#%E5%8D%81%E3%80%81%E5%8D%9A%E6%96%87%E7%BD%AE%E9%A1%B6" target="_blank" rel="external">&#x4F7F;&#x7528;Hexo&#x57FA;&#x4E8E;GitHub Pages&#x642D;&#x5EFA;&#x4E2A;&#x4EBA;&#x535A;&#x5BA2;&#xFF08;&#x4E09;&#xFF09;</a></p>
<p><a href="https://www.zhihu.com/question/52828036" target="_blank" rel="external">hexo next&#x4E3B;&#x9898;&#x66F4;&#x6362;&#x4E86;&#x80CC;&#x666F;&#x56FE;&#xFF0C;&#x5982;&#x4F55;&#x8BA9;&#x80CC;&#x666F;&#x56FE;&#x4E0D;&#x968F;&#x7740;&#x9875;&#x9762;&#x79FB;&#x52A8;&#x800C;&#x79FB;&#x52A8;&#xFF1F;</a></p>
<p><a href="http://zhouhuix.cn/2016/11/24/%E4%BF%AE%E6%94%B9Hexo%E7%9A%84Next%E4%B8%BB%E9%A2%98/" target="_blank" rel="external">&#x4FEE;&#x6539;Hexo&#x7684;Next&#x4E3B;&#x9898;</a></p>
<p><a href="http://www.jeyzhang.com/hexo-next-add-post-views.html" target="_blank" rel="external">Hexo&#x7684;NexT&#x4E3B;&#x9898;&#x4E2A;&#x6027;&#x5316;&#xFF1A;&#x6DFB;&#x52A0;&#x6587;&#x7AE0;&#x9605;&#x8BFB;&#x91CF;</a></p>
<p><a href="http://www.cwyaml.top/2017/01/25/hexo2/" target="_blank" rel="external">HEXO+GitHub&#x642D;&#x5EFA;&#x535A;&#x5BA2; - &#x4F18;&#x5316;</a></p>
<p><a href="https://github.com/iissnan/hexo-theme-next/issues/591" target="_blank" rel="external">&#x5728;pisces&#x4E2D;&#x5982;&#x4F55;&#x628A;&#x6587;&#x7AE0;&#x95F4;&#x7684;&#x8DDD;&#x79BB;&#x6539;&#x5C0F;&#x5462;&#xFF1F;</a></p>
<p><a href="http://www.jeyzhang.com/next-theme-personal-settings.html" target="_blank" rel="external">NexT&#x4E3B;&#x9898;&#x4E2A;&#x6027;&#x5316;&#x8BBE;&#x7F6E;</a></p>

      
    </div>

    <div>
      
        
<div id="wechat_subscriber" style="display: block; padding: 10px 0; margin: 20px auto; width: 100%; text-align: center">
    <img id="wechat_subscriber_qcode" src="/images/wechat-qrcode.jpg" alt="cxjiang wechat" style="width: 200px; max-width: 100%;"/>
    <div>欢迎您扫一扫上面的微信公众号，订阅我的博客！</div>
</div>


      
    </div>

    <div>
      
        
  <div style="padding: 10px 0; margin: 20px auto; width: 90%; text-align: center;">
    <div>坚持原创分享，您的支持将鼓励我继续创作！</div>
    <button id="rewardButton" disable="enable" onclick="var qr = document.getElementById('QR'); if (qr.style.display === 'none') {qr.style.display='block';} else {qr.style.display='none'}">
      <span>赏</span>
    </button>
    <div id="QR" style="display: none;">
      
        <div id="wechat" style="display: inline-block">
          <img id="wechat_qr" src="/images/wechatpay.JPG" alt="cxjiang WeChat Pay"/>
          <p>微信打赏</p>
        </div>
      
      
        <div id="alipay" style="display: inline-block">
          <img id="alipay_qr" src="/images/alipay.JPG" alt="cxjiang Alipay"/>
          <p>支付宝打赏</p>
        </div>
      
    </div>
  </div>


      
    </div>

    <div>
      
        
  <ul class="post-copyright">
    <li class="post-copyright-author">
      <strong>本文作者：</strong>
      cxjiang
    </li>
    <li class="post-copyright-link">
      <strong>本文链接：</strong>
      <a href="http://cxjiang.top/2017/04/07/Hexo-NexT/" title="Hexo_NexT主题-个性化配置记录">http://cxjiang.top/2017/04/07/Hexo-NexT/</a>
    </li>
    <li class="post-copyright-license">
      <strong>版权声明： </strong>
      本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/3.0/" rel="external nofollow" target="_blank">CC BY-NC-SA 3.0</a> 许可协议。转载请注明出处！
    </li>
  </ul>


      
    </div>

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/tags/Hexo/" rel="tag"># Hexo</a>
          
            <a href="/tags/NexT/" rel="tag"># NexT</a>
          
            <a href="/tags/主题/" rel="tag"># 主题</a>
          
            <a href="/tags/个性化/" rel="tag"># 个性化</a>
          
        </div>
      

      
        
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2017/04/07/picture/" rel="next" title="top-picture">
                <i class="fa fa-chevron-left"></i> top-picture
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2017/04/10/jianzhi/" rel="prev" title="兼职要点说明">
                兼职要点说明 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </article>



    <div class="post-spread">
      
        <!-- JiaThis Button BEGIN -->
<div class="jiathis_style">
  <a class="jiathis_button_tsina"></a>
  <a class="jiathis_button_tqq"></a>
  <a class="jiathis_button_weixin"></a>
  <a class="jiathis_button_cqq"></a>
  <a class="jiathis_button_douban"></a>
  <a class="jiathis_button_renren"></a>
  <a class="jiathis_button_qzone"></a>
  <a class="jiathis_button_kaixin001"></a>
  <a class="jiathis_button_copy"></a>
  <a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jiathis_separator jtico jtico_jiathis" target="_blank"></a>
  <a class="jiathis_counter_style"></a>
</div>
<script type="text/javascript" >
  var jiathis_config={
    hideMore:false
  }
</script>
<script type="text/javascript" src="http://v3.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->

      
    </div>
  </div>


          </div>
          


          
  <div class="comments" id="comments">
    
      <div id="cloud-tie-wrapper" class="cloud-tie-wrapper"></div>
    
  </div>


        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap" >
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
          <img class="site-author-image" itemprop="image"
               src="/images/avatar.png"
               alt="cxjiang" />
          <p class="site-author-name" itemprop="name">cxjiang</p>
           
              <p class="site-description motion-element" itemprop="description"></p>
           
        </div>
        <nav class="site-state motion-element">

          
            <div class="site-state-item site-state-posts">
              <a href="/archives">
                <span class="site-state-item-count">45</span>
                <span class="site-state-item-name">日志</span>
              </a>
            </div>
          

          
            
            
            <div class="site-state-item site-state-categories">
              <a href="/categories/index.html">
                <span class="site-state-item-count">5</span>
                <span class="site-state-item-name">分类</span>
              </a>
            </div>
          

          
            
            
            <div class="site-state-item site-state-tags">
              <a href="/tags/index.html">
                <span class="site-state-item-count">62</span>
                <span class="site-state-item-name">标签</span>
              </a>
            </div>
          

        </nav>

        
          <div class="feed-link motion-element">
            <a href="/atom.xml" rel="alternate">
              <i class="fa fa-rss"></i>
              RSS
            </a>
          </div>
        

        <div class="links-of-author motion-element">
          
            
              <span class="links-of-author-item">
                <a href="mailto:&#106;&#99;&#120;&#55;&#48;&#49;&#48;&#48;&#64;&#111;&#117;&#116;&#108;&#111;&#111;&#107;&#46;&#99;&#111;&#109" target="_blank" title="Email">
                  
                    <i class="fa fa-fw fa-envelope-o"></i>
                  
                  Email
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="http://weibo.com/1699473805/profile?topnav=1&wvr=6&is_all=1" target="_blank" title="Weibo">
                  
                    <i class="fa fa-fw fa-weibo"></i>
                  
                  Weibo
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="https://github.com/jcx70100" target="_blank" title="GitHub">
                  
                    <i class="fa fa-fw fa-github"></i>
                  
                  GitHub
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="http://www.jianshu.com/u/340c09a97d3a" target="_blank" title="简书">
                  
                    <i class="fa fa-fw fa-book"></i>
                  
                  简书
                </a>
              </span>
            
          
        </div>

        
        
          <div class="cc-license motion-element" itemprop="license">
            <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" class="cc-opacity" target="_blank">
              <img src="/images/cc-by-nc-sa.svg" alt="Creative Commons" />
            </a>
          </div>
        

        
        
          <div class="links-of-blogroll motion-element links-of-blogroll-inline">
            <div class="links-of-blogroll-title">
              <i class="fa  fa-fw fa-globe"></i>
              Links
            </div>
            <ul class="links-of-blogroll-list">
              
                <li class="links-of-blogroll-item">
                  <a href="http://www.czu.cn/" title="CIT" target="_blank">CIT</a>
                </li>
              
            </ul>
          </div>
        

        


      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#一、图片模式"><span class="nav-number">1.</span> <span class="nav-text">一、图片模式</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#1-1-新建博文"><span class="nav-number">1.1.</span> <span class="nav-text">1.1 新建博文</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#1-2-图片展示效果"><span class="nav-number">1.2.</span> <span class="nav-text">1.2 图片展示效果</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#1-3-修复图片展示"><span class="nav-number">1.3.</span> <span class="nav-text">1.3 修复图片展示</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#二、博文置顶"><span class="nav-number">2.</span> <span class="nav-text">二、博文置顶</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#2-1-修改hexo-generator-index插件"><span class="nav-number">2.1.</span> <span class="nav-text">2.1 修改hexo-generator-index插件</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#2-2-设置文章置顶"><span class="nav-number">2.2.</span> <span class="nav-text">2.2 设置文章置顶</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#三、设置静态背景图像"><span class="nav-number">3.</span> <span class="nav-text">三、设置静态背景图像</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#四、修改主题颜色"><span class="nav-number">4.</span> <span class="nav-text">四、修改主题颜色</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#五、安装busuanzi-js脚本"><span class="nav-number">5.</span> <span class="nav-text">五、安装busuanzi.js脚本</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#显示统计标签"><span class="nav-number">5.1.</span> <span class="nav-text">显示统计标签</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#六、修改内容宽度"><span class="nav-number">6.</span> <span class="nav-text">六、修改内容宽度</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#七、pisces文章的距离以及文章分割线长度修改"><span class="nav-number">7.</span> <span class="nav-text">七、pisces文章的距离以及文章分割线长度修改</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#八、修改首页、归档、标签页文章数"><span class="nav-number">8.</span> <span class="nav-text">八、修改首页、归档、标签页文章数</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#安装相关插件"><span class="nav-number">8.1.</span> <span class="nav-text">安装相关插件</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#配置文件"><span class="nav-number">8.2.</span> <span class="nav-text">配置文件</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#九、修改正文顶部与标题行间距"><span class="nav-number">9.</span> <span class="nav-text">九、修改正文顶部与标题行间距</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#参考资料"><span class="nav-number">10.</span> <span class="nav-text">参考资料</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js">
</script>

<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?f6d6670729f1a15754709bb81163a413";
  var s = document.getElementsByTagName("script")[0];
  s.parentNode.insertBefore(hm, s);
})();
</script>

<div class="copyright" >
  
  &copy;  2015 - 
  <span itemprop="copyrightYear">2017</span>
  <span class="with-star">
    <i class="fa fa-star"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">cxjiang</span>
</div>


<div class="powered-by">
  由 <a class="theme-link" href="https://hexo.io">Hexo</a> 强力驱动
</div>

<div class="theme-info">
  主题 -
  <a class="theme-link" href="https://github.com/iissnan/hexo-theme-next">
    NexT.Pisces
  </a>
</div>

<div>
<span id="busuanzi_container_site_pv">
    Total visited <span id="busuanzi_value_site_pv"></span> times
</span>
</div>





        

        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  






  
  <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>

  
  <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>

  
  <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.0"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.0"></script>



  
  


  <script type="text/javascript" src="/js/src/affix.js?v=5.1.0"></script>

  <script type="text/javascript" src="/js/src/schemes/pisces.js?v=5.1.0"></script>



  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.0"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.0"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.0"></script>



  


  




	





  
    
    <script>
      var cloudTieConfig = {
        url: document.location.href, 
        sourceId: "",
        productKey: "ea1d9b34ebad4955885538a9ef34e34c",
        target: "cloud-tie-wrapper"
      };
    </script>
    <script src="https://img1.ws.126.net/f2e/tie/yun/sdk/loader.js"></script>
  










  

  <script type="text/javascript">
    // Popup Window;
    var isfetched = false;
    // Search DB path;
    var search_path = "search.xml";
    if (search_path.length == 0) {
      search_path = "search.xml";
    }
    var path = "/" + search_path;
    // monitor main search box;

    function proceedsearch() {
      $("body")
        .append('<div class="search-popup-overlay local-search-pop-overlay"></div>')
        .css('overflow', 'hidden');
      $('.popup').toggle();
    }
    // search function;
    var searchFunc = function(path, search_id, content_id) {
      'use strict';
      $.ajax({
        url: path,
        dataType: "xml",
        async: true,
        success: function( xmlResponse ) {
          // get the contents from search data
          isfetched = true;
          $('.popup').detach().appendTo('.header-inner');
          var datas = $( "entry", xmlResponse ).map(function() {
            return {
              title: $( "title", this ).text(),
              content: $("content",this).text(),
              url: $( "url" , this).text()
            };
          }).get();
          var $input = document.getElementById(search_id);
          var $resultContent = document.getElementById(content_id);
          $input.addEventListener('input', function(){
            var matchcounts = 0;
            var str='<ul class=\"search-result-list\">';
            var keywords = this.value.trim().toLowerCase().split(/[\s\-]+/);
            $resultContent.innerHTML = "";
            if (this.value.trim().length > 1) {
              // perform local searching
              datas.forEach(function(data) {
                var isMatch = false;
                var content_index = [];
                var data_title = data.title.trim().toLowerCase();
                var data_content = data.content.trim().replace(/<[^>]+>/g,"").toLowerCase();
                var data_url = decodeURIComponent(data.url);
                var index_title = -1;
                var index_content = -1;
                var first_occur = -1;
                // only match artiles with not empty titles and contents
                if(data_title != '') {
                  keywords.forEach(function(keyword, i) {
                    index_title = data_title.indexOf(keyword);
                    index_content = data_content.indexOf(keyword);
                    if( index_title >= 0 || index_content >= 0 ){
                      isMatch = true;
                      if (i == 0) {
                        first_occur = index_content;
                      }
                    }

                  });
                }
                // show search results
                if (isMatch) {
                  matchcounts += 1;
                  str += "<li><a href='"+ data_url +"' class='search-result-title'>"+ data_title +"</a>";
                  var content = data.content.trim().replace(/<[^>]+>/g,"");
                  if (first_occur >= 0) {
                    // cut out 100 characters
                    var start = first_occur - 20;
                    var end = first_occur + 80;
                    if(start < 0){
                      start = 0;
                    }
                    if(start == 0){
                      end = 50;
                    }
                    if(end > content.length){
                      end = content.length;
                    }
                    var match_content = content.substring(start, end);
                    // highlight all keywords
                    keywords.forEach(function(keyword){
                      var regS = new RegExp(keyword, "gi");
                      match_content = match_content.replace(regS, "<b class=\"search-keyword\">"+keyword+"</b>");
                    });

                    str += "<p class=\"search-result\">" + match_content +"...</p>"
                  }
                  str += "</li>";
                }
              })};
            str += "</ul>";
            if (matchcounts == 0) { str = '<div id="no-result"><i class="fa fa-frown-o fa-5x" /></div>' }
            if (keywords == "") { str = '<div id="no-result"><i class="fa fa-search fa-5x" /></div>' }
            $resultContent.innerHTML = str;
          });
          proceedsearch();
        }
      });}

    // handle and trigger popup window;
    $('.popup-trigger').click(function(e) {
      e.stopPropagation();
      if (isfetched == false) {
        searchFunc(path, 'local-search-input', 'local-search-result');
      } else {
        proceedsearch();
      };
    });

    $('.popup-btn-close').click(function(e){
      $('.popup').hide();
      $(".local-search-pop-overlay").remove();
      $('body').css('overflow', '');
    });
    $('.popup').click(function(e){
      e.stopPropagation();
    });
  </script>





  

  
  <script src="https://cdn1.lncld.net/static/js/av-core-mini-0.6.1.js"></script>
  <script>AV.initialize("wg8YqRpHsKpFeakal2Auq3Gp-gzGzoHsz", "WDfyk7eOEE9M6815p1xb9Hle");</script>
  <script>
    function showTime(Counter) {
      var query = new AV.Query(Counter);
      var entries = [];
      var $visitors = $(".leancloud_visitors");

      $visitors.each(function () {
        entries.push( $(this).attr("id").trim() );
      });

      query.containedIn('url', entries);
      query.find()
        .done(function (results) {
          var COUNT_CONTAINER_REF = '.leancloud-visitors-count';

          if (results.length === 0) {
            $visitors.find(COUNT_CONTAINER_REF).text(0);
            return;
          }

          for (var i = 0; i < results.length; i++) {
            var item = results[i];
            var url = item.get('url');
            var time = item.get('time');
            var element = document.getElementById(url);

            $(element).find(COUNT_CONTAINER_REF).text(time);
          }
          for(var i = 0; i < entries.length; i++) {
            var url = entries[i];
            var element = document.getElementById(url);
            var countSpan = $(element).find(COUNT_CONTAINER_REF);
            if( countSpan.text() == '') {
              countSpan.text(0);
            }
          }
        })
        .fail(function (object, error) {
          console.log("Error: " + error.code + " " + error.message);
        });
    }

    function addCount(Counter) {
      var $visitors = $(".leancloud_visitors");
      var url = $visitors.attr('id').trim();
      var title = $visitors.attr('data-flag-title').trim();
      var query = new AV.Query(Counter);

      query.equalTo("url", url);
      query.find({
        success: function(results) {
          if (results.length > 0) {
            var counter = results[0];
            counter.fetchWhenSave(true);
            counter.increment("time");
            counter.save(null, {
              success: function(counter) {
                var $element = $(document.getElementById(url));
                $element.find('.leancloud-visitors-count').text(counter.get('time'));
              },
              error: function(counter, error) {
                console.log('Failed to save Visitor num, with error message: ' + error.message);
              }
            });
          } else {
            var newcounter = new Counter();
            /* Set ACL */
            var acl = new AV.ACL();
            acl.setPublicReadAccess(true);
            acl.setPublicWriteAccess(true);
            newcounter.setACL(acl);
            /* End Set ACL */
            newcounter.set("title", title);
            newcounter.set("url", url);
            newcounter.set("time", 1);
            newcounter.save(null, {
              success: function(newcounter) {
                var $element = $(document.getElementById(url));
                $element.find('.leancloud-visitors-count').text(newcounter.get('time'));
              },
              error: function(newcounter, error) {
                console.log('Failed to create');
              }
            });
          }
        },
        error: function(error) {
          console.log('Error:' + error.code + " " + error.message);
        }
      });
    }

    $(function() {
      var Counter = AV.Object.extend("Counter");
      if ($('.leancloud_visitors').length == 1) {
        addCount(Counter);
      } else if ($('.post-title-link').length > 1) {
        showTime(Counter);
      }
    });
  </script>



  
<script>
(function(){
    var bp = document.createElement('script');
    var curProtocol = window.location.protocol.split(':')[0];
    if (curProtocol === 'https') {
        bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';        
    }
    else {
        bp.src = 'http://push.zhanzhang.baidu.com/push.js';
    }
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(bp, s);
})();
</script>


  
  


  

</body>
</html>
